<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close">
    	<i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
        	<!-- 个人信息及操作 -->
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" th:src="@{/img/profile_small.jpg}" /></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
	                        <span class="block m-t-xs">
	                        	<strong class="font-bold" th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.name}"></strong>
	                        </span>
                        	<span class="text-muted text-xs block" th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.roleName}"><b class="caret"></b></span>
                        	<span class="text-muted text-xs block" th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.orgName}"><b class="caret"></b></span>
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li>
                        	<a href="javascript:void(0)" id="changePass">修改密码</a>
                        </li>
                        <li>
                        	<a class="J_menuItem" href="/sys/sysUser/avatar">修改头像</a>
                        </li>
                        <li>
                        	<a class="J_menuItem" href="javascript:void(0)" id="personal">个人资料</a>
                        </li>
                        <li>
                        	<a class="J_menuItem" href="contacts.html">联系我们</a>
                        </li>
                        <li>
                        	<a class="J_menuItem" href="mailbox.html">信箱</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                        	<a href="javascript:void(0)" class="logout">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">FS
                </div>
            </li>
            
            <!-- 菜单 -->
<!--             <c:forEach items="${authorisedMenus}" var="menu"> -->
<!-- 				<li> -->
<!-- 	                <a href="#"> -->
<!-- 	                    <i class="${menu.iconCls}"></i> -->
<!-- 	                    <span class="nav-label">${menu.text}</span> -->
<!-- 	                    <span class="fa arrow"></span> -->
<!-- 	                </a> -->
<!-- 	                <ul class="nav nav-second-level"> -->
<!-- 	                	<c:forEach items="${menu.children}" var="resc"> -->
<!-- 							<li> -->
<!-- 		                        <a class="J_menuItem" th:href="@{resc.attributes.url}" data-index="0">${resc.text}</a> -->
<!-- 		                    </li> -->
<!-- 						</c:forEach> -->
<!-- 	                </ul> -->
<!-- 	            </li> -->
<!-- 			</c:forEach> -->
			<li>
                <a href="#">
                    <i class="fa fa-home"></i>
                    <span class="nav-label">测试菜单</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
					<li>
                        <a class="J_menuItem" th:href="@{/sys/sysUser/list}" data-index="0">用户管理</a>
                    </li>
					<li>
                        <a class="J_menuItem" th:href="@{/sys/sysResource/list}" data-index="1">菜单管理</a>
                    </li>
					<li>
                        <a class="J_menuItem" th:href="@{/sys/sysOrg/list}" data-index="2">部门管理</a>
                    </li>
					<li>
                        <a class="J_menuItem" th:href="@{http://www.sina.com}" data-index="3">新浪</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</nav>